<template>
    <div>
        <a-button class="out" @click="layout">退出</a-button>
    </div>
</template>

<script>
export default {
    name: '',
    methods:{
        layout(){
            this.$router.push('/')
            localStorage.clear()
        }
    }
};
</script>

<style scoped>
.out {
    position: absolute;
    width: 100px;
    margin-left: 90%;
    margin-top: -32px;
}
</style>